package cn.aws360.boot.system.api.pojo.request;

import cn.aws360.boot.base.api.validation.ValidationGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;

/**
 * @author junnan
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("系统角色数据-写入实例")
public class SysRoleDataWrite {

    @ApiModelProperty(value = "角色 id", required = true)
    @NotNull(message = "角色 id 不能为空", groups = {ValidationGroup.edit.class})
    private Integer roleId;

}
